{% load static %}
<!DOCTYPE html>
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="http://v3.bootcss.com/favicon.ico">

    <title>Signin Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet">

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="{% static 'css/ie10-viewport-bug-workaround.css' %}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="{% static 'css/signin.css' %}" rel="stylesheet">

  </head>

  <body>

    <div class="container">
        <span>{{ error }}</span>
      <form class="form-signin" method="post" action=""  enctype="multipart/form-data">
        <h2 class="form-signin-heading">注册</h2>
        <input type="text" name="username"  class="form-control" placeholder="用户名" >
        <input type="password" name="password1" class="form-control" placeholder="密码" >
        <input type="password" name="password2" class="form-control" placeholder="确认密码">
        <input type="text" name="nick" class="form-control" placeholder="昵称" required="">
        <input type="file" name="head_pic" class="form-control" placeholder="头像" >
        <div>
            <span style="color: red">{{ error }}</span>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">提交</button>
      </form>

    </div> <!-- /container -->

    <script src="{% static 'js/ie10-viewport-bug-workaround.js' %}"></script>


</body></html>